package com.galen.manual.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@Schema(description = "用户登录请求")
public class UserLoginDTO {

    @Schema(description = "微信授权码", example = "071JGP000d9WtD1pI2000vP4MwN1JGP0", required = true)
    @NotBlank(message = "微信授权码不能为空")
    private String code;

    @Schema(description = "用户昵称", example = "张三", required = true)
    @NotBlank(message = "用户昵称不能为空")
    private String nickName;

    @Schema(description = "用户头像URL", example = "https://thirdwx.qlogo.cn/...")
    private String avatarUrl;
}